<?php

inc_class("component");

$page = new component();
$name = $script["filename"];
//filedump($page->xml->GetDomXml("rfc/".$name)->saveXML());
$ret = $page->xml->Transform("rfc/".$name, "rfc2html");
die(pcre::replace("^".pcre::escape("<?").".*?".pcre::escape("?>"), '<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">', $ret->saveXML()));

?>